package com.bgs.travelapp.scheduledTasks.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name="scheduled_tasks")
public class ScheduledTasksEntity {

    //定时任务id
    @Id
    private Integer id;

    //定时任务执行时间
    @JsonFormat(pattern ="yyyy-MM-dd",timezone = "GMT+8")
    private Date createTime;
}
